package com.suao.report.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.suao.common.annotation.Excel;
import com.suao.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品销售统计对象 v_goods_sales_info
 *
 * @author tyz
 * @date 2023-03-02
 */
@Data
public class VGoodsSalesInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date salesTime;
 
    /** 销售总额 */
    @Excel(name = "销售总额")
    private BigDecimal salesTotal;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("salesTime", getSalesTime())
            .append("salesTotal", getSalesTotal())
            .toString();
    }
}
